<%@ page language="java" contentType="text/html; charset=utf-8" errorPage="/404.jsp" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>公寓管理系统 - 合同信息更新</title>
    <style type="text/css">
        @import url("<c:url value='/css/main.css'/>");
    </style>
</head>


<body>
<div class="div_main">
    <div class="div_header">租凭合同管理-合同更新</div>

    <h1 align="center">
        <a href="${pageContext.request.contextPath}/contract/list.action">
            返回首页
        </a>
    </h1>
    <c:if test="${not empty contract}">
        <form action="${pageContext.request.contextPath}/contract/updateOneByCid.action" method="post"
              enctype="multipart/form-data">
            <div class="div_data">
                <table class="tab_list">
                    <tr>
                        <th>租户编号</th>
                        <th>房屋编号</th>
                        <th>押金</th>
                        <th>签署时间</th>
                        <th>开始时间</th>
                        <th>结束时间</th>
                        <th>总金额</th>
                        <th>状态</th>
                        <th>付款方式</th>
                        <th>操作</th>
                    </tr>
                    <tr>
                        <td>
                            <input type="hidden" name="cid" value="${contract.cid}">
                            <input type="number" name="lid" value="${contract.lid}">

                        </td>
                        <td>
                            <input type="number" name="hid" value="${contract.hid}">
                        </td>
                        <td>
                            <input type="number" name="ccash" value="${contract.ccash}">
                        </td>

                        <td>
                            <input type="datetime-local" name="ccreatetime" value="${contract.ccreatetimeStrT}">
                        </td>
                        <td>
                            <input type="datetime-local" name="cstarttime" value="${contract.cstarttimeStrT}">

                        </td>
                        <td>
                            <input type="datetime-local" name="cendtime" value="${contract.cendtimeStrT}">
                        </td>
                        <td>
                            <input type="number" name="ctotalmoney" value="${contract.ctotalmoney}">
                        </td>
                        <td>
                            <input type="number" name="cstatus" value="${contract.cstatus}">

                        </td>
                        <td>
                            <input type="number" name="ctype" value="${contract.ctype}">

                        </td>


                        <td>
                            <input type="reset" value="重填">
                            &nbsp;&nbsp;
                            <input type="submit" value="提交更改">
                            &nbsp;&nbsp;
                        </td>
                    </tr>


                </table>
            </div>
        </form>
    </c:if>


</div>
</body>

</html>